home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / GSCONFIG < prev    next >
Text File  |  1992-03-17  |  678b  |  33 lines

  1. if ( test "$1" = "+" ) then
  2.     shift
  3. else
  4.     rm -f _temp_.dob _temp_.dlb _temp_.d
  5.     touch _temp_.dob _temp_.dlb _temp_.d
  6.     rm -f _temp_.dh _temp_.dop _temp_.dps
  7.     echo /\* \*/ >_temp_.dh
  8.     echo /\* \*/ >_temp_.dop
  9.     echo % >_temp_.dps
  10. fi
  11. rm -f _temp_.c
  12. cat <<EOF >_temp_.c
  13. /bin/sh < _temp_.d
  14. rm -f obj.tr gconfig.h lib.tr gconfig.ps
  15. sort <_temp_.dob | uniq >obj.tr
  16. mv _temp_.dh gconfig.h
  17. sort <_temp_.dop | uniq >>gconfig.h
  18. mv _temp_.dlb lib.tr
  19. sort <_temp_.dps | uniq >gconfig.ps
  20. rm -f _temp_.d*
  21. EOF
  22. for dev in $*
  23. do
  24.     if ( test "${dev}" = "+" ) then
  25.         rm -f _temp_.c
  26.         touch _temp_.c
  27.     else
  28.         cat ${dev} >>_temp_.d
  29.     fi
  30. done
  31. /bin/sh < _temp_.c
  32. rm _temp_.c
  33.